home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
com
/
computer
/
casio_st
/
prog_fx
/
divers
/
gest_cpt.sha
< prev
next >
Wrap
Text File
|
1994-03-01
|
775b
|
20 lines
10 REM GESTION DE COMPTE SIMPLE
20 REM (C) WILLYTEL 89
30 REM 24H/7H AU 62.93.74.05
40 REM ATTENTION CE PROGAMME UTILISE LA Function Memory AFIN DE GARDER LE SOLDE EN MEMOIRE.
50 REM N'UTILISEZ DONC PAS CELLE-CI AU RISQUE DE PERDRE VOTRE SOLDE !!!
60 DIM SO(9):SOLDE=0:SET F2
70 FOR X=1024TO1033
80 I=X-1024:SO(I)=PEEK(X)
90 NEXT X
100 FOR I=0 TO 8
110 SOLDE=SO(I)*100^(I)+SOLDE
120 NEXT I
130 SOLDE=SOLDE/100*(-2*SO(9)+1)
140 CLS:LOCATE0,0:PRINT "SOLDE:";SOLDE;:LOCATE0,1:PRINT "OPERATION:";:INPUT@(9);OP
150 IF ABS(SOLDE+OP)>1E10 THEN PRINT "DEPASSEMENT CAPACITE !!!":GOTO 140
160 SOLDE=SOLDE+OP:OP=0
170 IF SOLDE<0 THEN POKE 1033,1
180 IF SOLDE>0 THEN POKE 1033,0
190 FOR I=1024 TO 1032:A=INT(FRAC(ABS(SOLDE)/100^(I-1024))*100):POKE I,A:NEXT I:GOTO 140